Fix conversion from float to int so that we don't get skew in the int =>
authorOwen Taylor <otaylor@redhat.com>
Sun, 5 Aug 2001 15:27:30 +0000 (15:27 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Sun, 5 Aug 2001 15:27:30 +0000 (15:27 +0000)
commit727cdae76935c12379dfbba6962872153d59b37a
treee1498ea14f6e0d5f773af023cdc210d93cdf6e79
parent42cf380d36c4ebb4ae3d0a34eefcfd76219c1c6c
Fix conversion from float to int so that we don't get skew in the int =>

Sun Aug  5 11:24:27 2001  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkcolorsel.c (gtk_color_selection_set_current_alpha):
Fix conversion from float to int so that we don't get
skew in the int => float => int roundtrip.
(#58120, reported by Vitaly Tishkov). Also fix problem
where if no alpha was set, the returned alpha
from (say) set_current_alpha() was returned as 1, not 65535.
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkcolorsel.c